Previous Book Contents Book Index Next

Inside Macintosh: QuickTime /
Chapter 2 - Movie Toolbox / Movie Toolbox Reference
Functions That Modify Movie Properties / Working with Movie Time


GetMovieTimeScale

The GetMovieTimeScale function returns the time scale of a movie.

pascal TimeScale GetMovieTimeScale (Movie theMovie);
theMovie
Specifies the movie for this operation. Your application obtains this movie identifier from such functions as NewMovie, NewMovieFromFile, and NewMovieFromHandle (described on page 2-80, page 2-76, and page 2-78, respectively).
DESCRIPTION
The default QuickTime movie time scale is 600 units per second; however, this number may change in the future. The default time scale was chosen because it is convenient for working with common video frame rates of 30, 25, 24, 15, 12, 10, and 8.

ERROR CODES
invalidMovie-2010This movie is corrupted or invalid
SEE ALSO
You can set a movie's time scale by calling the SetMovieTimeScale function, which is described in the previous section.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996